<?php

namespace App\Admin\Controllers\Api;

use App\Models\User;
use App\Http\Controllers\Controller;

class UsersController extends Controller
{
	public function index()
	{
		return User::ajaxSelect2(request('q'))->paginate(null, ['id', 'name as text']);
	}
}
